package com.shenda.device.message;

import com.shenda.device.enums.Cmd;
import com.swak.utils.StringUtils;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 配置
 * 
 * @author lifeng
 */
@Getter
@Setter
@Accessors(chain = true)
public class ReqMsg_Config extends ReqMsg {

	private String cjms;
	private String cjpl;
	private String odr;

	public ReqMsg_Config() {
		this.cmd = Cmd.CMD_Config;
		this.content = StringUtils.EMPTY;
	}

	@Override
	public byte[] encode() {
		this.content = new StringBuilder().append(cjms).append(cjpl).append(odr).toString();
		return super.encode();
	}

	public static ReqMsg_Config of() {
		return new ReqMsg_Config();
	}
}
